package com.csea.common.domain.dos;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @description 用户仓库表
 * @author xiyou
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("user_repository")
public class UserRepositoryDo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    @TableId(value = "repository_id", type = IdType.AUTO)
    private Integer repositoryId;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 仓库名称
     */
    @TableField("repository_name")
    private String repositoryName;
    /**
     * 仓库类型
     * 'IDIOM','COMMONSENSE','OTHER'
     */
    @TableField("repository_type")
    private String repositoryType;
    /**
     * 仓库描述
     */
    @TableField("description")
    private String description;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 是否删除
     */
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;
}
